<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<h1>
	<fmt:message key="document.form.title" />
</h1>
<c:url var="url" value="/document/saveForm.html" />
<form:form action="${url}" commandName="documentEntity" method="post">
	<fieldset>
		<div class="form-row">
			<label for="name"><fmt:message key="document.form.name" />:</label>
			<span class="input"> <form:input path="name" /></span>
		</div>
		<div class="form-row">
			<label for="description"><fmt:message key="document.form.description" />:</label> 
			<span class="input"><form:input path="description" /></span>
		</div>
		<div class="form-buttons">
			<div class="button">
				<input name="submit" type="submit"
					value="<fmt:message key="button.save"/>" />
			</div>
		</div>
	</fieldset>
</form:form>
